#

import os

base_dir = os.path.dirname(os.path.abspath(__file__))


config = dict(
    db=os.path.join(base_dir, 'db.json'),
    save_path=base_dir,
    proxy_key='proxy:all',
    proxy_threshold=50000,
    flush_score=20,
    initial_score=10,
    max_score=100,
    min_score=5,
    test_url='http://www.baidu.com',
    test_size=10,
    crawl_delay=4*3600,
    test_delay=3600,
    api_host='127.0.0.1',
    api_port=5000
)
